<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 100px;
      height: 100px;
      line-height: 100px;
      text-align: center;
    }

    .div1 {
      background-color: pink;
      margin: 0 auto;
    }

    .div2 {
      background-color: green;
      display: inline-block;
      margin-left: 50%;
    }

    .div3 {
      background-color: blue;
      display: inline-block;
      margin-left: -200px;
    }
  </style>
</head>

<body>
  <div class="div1">1</div>
  <div class="div2">2</div>
  <div class="div3">3</div>
</body>

</html>